package com.qfmy.model.entity.common;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 清风明月
 * @Package com.qfmy.model.entity
 * @date 2025/4/13
 * @description 广告实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuppressWarnings("all")
public class Advertisement {
    @Schema(description = "广告ID")
    private Integer id;
    
    @Schema(description = "投放的图片")
    private String image;
    
    @Schema(description = "广告的标题")
    private String title;
    
    @Schema(description = "广告的位置 0:首页轮播 1:阅读底部")
    private Integer position;
    
    @Schema(description = "关联小说的名称")
    private String novel;
    
    @Schema(description = "开始时间")
    private Date startTime;
    
    @Schema(description = "结束时间")
    private Date endTime;
    
    @Schema(description = "广告的状态: 0:投放中 1:已暂停 2:已结束")
    private Integer status;
    
    @Schema(description = "投放的用户")
    private String phone;
    
    @Schema(description = "广告的费用")
    private BigDecimal free;
    
    @Schema(description = "广告投放的时间")
    private Integer day;
    
    @Schema(description = "广告暂停的时间")
    private Integer time;
    
    @Schema(description = "广告类型 0:小说 1:漫画 2:视频 3:音乐 4:人工智能 5:其他")
    private Integer type;
}